import request from "@/utils/request";
export const getAllMenu = params => {
    return request({
        url: "/admin/api/rest/menus",
        params
    });
};
export const normalGetAllMenu = ()=>{
    return request({
        url: "/admin/api/menu/normallyGet"
    })
}
export const getPermissionMenus = ()=>{
    return request({
        url: "/admin/api/menu/permissionMenus"
    })
}
export const addMenu = data => {
    return request({
        url: "/admin/api/rest/menus",
        method: "POST",
        data,
    });
};
export const deleteMenu = data => {
    return request({
        url: "/admin/api/rest/menus",
        method: "DELETE",
        data,
    });
};
export const updateMenu = data => {
    return request({
        url: "/admin/api/rest/menus",
        method: "PATCH",
        data,
    });
};